Skip to main content

Folder Structure

This page provides an overview of the project structure of a Catalyst app.


Top-Level Folders

FolderPurpose
configConfiguration keys (environment variables for server and client)
srcApplication source code
clientClient app entry point
serverServer code (middlewares, controllers, APIs)
publicStatic assets served as-is (favicons, manifests, offline.html)
buildBundled output (generated after build)

Configuration Files

FilePurpose
config/config.jsonEnvironment variables for server and client
src/js/routes/index.jsRoute definitions
src/js/store/index.jsRedux store configuration (optional)
client/index.jsClient app entry point
server/document.jsHTML document template
server/index.jsServer lifecycle hooks
server/server.jsExpress middlewares

Static Assets

DirectoryPurpose
src/static/cssGlobal stylesheets
src/static/fontsFont files
public/Static files served at root path